home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 70 / examples / examples.arc / CHECK.ST < prev    next >
Text File  |  1985-11-20  |  178b  |  16 lines

  1. Class CheckBook
  2. | balance |
  3. [
  4.     new
  5.         balance <- 0
  6. |
  7.     + amount
  8.         balance <- balance + amount.
  9.         ^ balance
  10. |
  11.     - amount
  12.         balance <- balance - amount.
  13.         ^ balance
  14. ]
  15.  
  16.